package copy;

import java.io.Serializable;

/**
 * @projectName: com.xiayuanxing.designPattern
 * @className: DeepCloneableTarget
 * @author: xiayuanxing
 * @description: 深拷贝
 * @date: 2021/12/18 16:44
 * @version: 1.0
 */
public class DeepCloneableTarget implements Serializable,Cloneable {

    private static final long serialVersionUID = 1L;

    private String cloneName;

    private String cloneClass;

    //构造器
    public DeepCloneableTarget(String cloneName, String cloneClass) {
        this.cloneName = cloneName;
        this.cloneClass = cloneClass;
    }

    @Override
    protected Object clone()throws CloneNotSupportedException{
        return super.clone();
    }
}
